import Layout from '@/layout/index.vue'
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      // 默认路由 空字符串
      path: '',
      name: 'employees',
      component: () => import('@/views/employees/index.vue'),
      meta: { title: '员工', icon: 'people' }
    },
    {
      path: 'detail/:id', // query传参 动态路由传参
      component: () => import('@/views/employees/detail'),
      hidden: true, // 不在左侧菜单显示
      meta: {
        title: '员工详情' // 标记当前路由规则的中文名称 后续在做左侧菜单时 使用
      }
    },
    {
      path: 'print/:id',
      name: 'print', // query传参 动态路由传参
      component: () => import('@/views/employees/print.vue'),
      hidden: true // 不在左侧菜单显示

    }

  ]
}
